<template>
  <div style="padding-bottom: 60px">
    <NavBar></NavBar>
    <keep-alive :include="['Index']">
      <router-view/>
    </keep-alive>
    <div class="water_mark">
      <div class="content">
        <span class="title" v-for="item in 40" :key="item"> {{ username }}</span>
      </div>
    </div>
  </div>
</template>

<script>
import NavBar from '@/components/navBar'

export default {
  components: {
    NavBar
  },
  computed: {
    username() {
      return sessionStorage.getItem('name') || ''
    }
  },
  watch: {
    $route(val) {
      // console.log(val)
    }
  }
}
</script>

<style scoped>

</style>
